﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditEmployer.aspx.cs" Inherits="WorkUA.UserManagment.EditEmployer" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ObjectDataSource ID="dsUsers" runat="server" DataObjectTypeName="DB_EntityFramework.User" TypeName="DAL.Managers.UserManager"
            SelectMethod="GetEmployerById"
            UpdateMethod="Edit">
            <SelectParameters>
                <asp:QueryStringParameter Name="id" QueryStringField="uid" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:FormView runat="server" ID="fvEditEmployer" DataKeyNames="Id" DefaultMode="Edit" DataSourceID="dsUsers">
            <EditItemTemplate>
                Login:
            <asp:TextBox ID="txtLogin" runat="server" Text='<%#Bind("Login") %>' />
                <br />
                Password:
            <asp:TextBox ID="txtPassword" runat="server" Text='<%#Bind("Password") %>' />
                <br />
                 Email:
            <asp:TextBox ID="txtEmail" runat="server" Text='<%#Bind("Email") %>' />
                <br />
                Name:
            <asp:TextBox ID="txtName" runat="server" Text='<%#Bind("Name") %>' />
                <br />
                Sity:
            <asp:TextBox ID="txtSity" runat="server" Text='<%#Bind("Sity") %>' />
                <br />  
                  Address:
            <asp:TextBox ID="txtAddress" runat="server" Text='<%#Bind("Address") %>'/> 
                <br />
                Phone:
            <asp:TextBox ID="txtPhone" runat="server" Text='<%#Bind("Phone") %>' />
                <br />
                Skype:
            <asp:TextBox ID="txtSkype" runat="server" Text='<%#Bind("Skype") %>' />
                <br />
                
                      
                <asp:Button runat="server" ID="btnEdit" Text="save" OnClick="btnEdit_Click" />
            </EditItemTemplate>
        </asp:FormView>
    </form>
</body>
</html>
